﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class WatchdogViewer : ConsoleComponent
{

    public CommandInput commandInput;

    public WatchdogViewer()
    {
        commandInput = new CommandInput();
    }

    private Vector2 scrollPosition = new Vector2();
    public override void OnDrawing()
    {
        string watchdogString = Watchdog.GetString();
        GUIHelper.PrintScrollText(watchdogString, GUIHelper.RatioRect(0.18f, DebugConsole.R_SPACING, 0.81f, 0.82f), ref scrollPosition);

        // Directly draw command input area
        commandInput.OnDrawing();
    }
}